# Contributor: Ryan Barnett <ryanbarnett3@gmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=squashfs-tools-ng
pkgver=1.3.1
pkgrel=0
pkgdesc="New set of tools and libraries for working with SquashFS images"
url="https://infraroot.at/projects/squashfs-tools-ng/"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	automake
	libselinux-dev
	lz4-dev
	lzo-dev
	xz-dev
	zlib-dev
	zstd-dev
	"
subpackages="
	$pkgname-dev
	$pkgname-libs
	$pkgname-doc
	"
source="https://infraroot.at/pub/squashfs/squashfs-tools-ng-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
4a7bb8b764e2f25ff8c41ec404018dd91cbf461eed60993a9945604bfe479bd5e07eaae8277a2493c7fd17a49724b62887d4def82952366588d0ef10a88207fb  squashfs-tools-ng-1.3.1.tar.gz
"
